$(function(){
	if( proxyIframeSrc.indexOf('?') < 0  )
		proxyIframeSrc += '?';
	proxyIframeSrc + '&time='+ (new Date()).valueOf();
	iframeSize.init();
	setInterval(function(){		
		iframeSize.setSize()
	},1000);
});

var iframeSize = {
	
	src : proxyIframeSrc,
	postFlaging : false,
	height : 0,
	setSize : function(){
		if(iframeSize.postFlaging)
			return false;
		if( iframeSize.height != $('html').height() ){
			iframeSize.setHeight();
			$('#postIframeHeight')
				.html('<iframe onload="iframeSize.postIframeEnd();" width="0" height="0" src="'+ iframeSize.src + "#"+0+"|"+iframeSize.height +'"></iframe>');
			iframeSize.postFlaging = true ;
			
		}
	},
	init : function(){
		iframeSize.setHeight();
		if(!$('#postIframeHeight').get(0)) $('body').append('<div id="postIframeHeight" style="display:none;"></div>');
	},	
	postIframeEnd : function(){ iframeSize.postFlaging = false; },
	setHeight : function(){ iframeSize.height = $('html').height() + 25; }	
};